//
// Created by dell on 2025/8/26.
//
#include "iostream"
using namespace std;
int main() {
    system("chcp 65001");
    // 指针悬挂:指针指向已经被回收的区域空间
    int *p1 = new int;
    *p1 = 10;
    int *p2  = p1;
    cout << "指针p1指向的内存区域存储的数值是：" << *p1 << endl;
    // delete p1;

    cout << "指针p2指向的内存区域存储的数值是：" << *p2 << endl;







    return 0;
}